public class SingleDog {
    public static void main(String[] args) {
       int[] arr = {1,1,2,2,3,3,5};
       int i = 0;
       int con = 0;
       for(int a:arr) {
           System.out.println(a);
       }
       for(i = 0;i < arr.length;i++) {
           con^=arr[i];
       }
        System.out.println(con);
    }
}
